package com.tfjybj.itoo.teach.provider.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tfjybj.itoo.teach.entity.TeacherCourseTeachClassEntity;
import com.tfjybj.itoo.teach.entity.TeacherTeachClassEntity;
import com.tfjybj.itoo.teach.model.SelectTeacherTeachClassModel;
import com.tfjybj.itoo.teach.model.TeacherTeachClassModel;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * TeacherTeachClassDao接口
 * teacherTeachClass表
 *
 * @author 田成荣
 * @version 2.0.0
 * @since 2.0.0 2018-11-08 19:34:10
 */
@Repository("teacherTeachClassDao")
public interface TeacherTeachClassDao extends BaseMapper<TeacherTeachClassEntity> {
	
	//region 模板生成：模糊查询
	/**
     * 根据上课班id模糊查询teacherTeachClass
     *
     * @param teachClassId  上课班id
     * @return 模糊查询的teacherTeachClass集合
     * @author 田成荣
     * @since 2.0.0 2018-11-08 19:34:10
     */
    List<TeacherTeachClassEntity> queryLikeTeachClassId(@Param("teachClassId") String teachClassId);


    //endregion

    /* **********************************以下为非模板生成的内容********************************* */
    int deleteByteachClassId(@Param("teachclassid") String teachclassid, @Param("operator") String operator);


    /**
     * 根据上课班id查询学生信息
     * @param teachClassId
     * @return 学生姓名list
     * @author 郝雨烁
     * @since 0.0.1 2019年3月6日16:34:48
     */
    List<TeacherTeachClassModel> queryStudents(@Param("teachClassId") String teachClassId);

    /**
     * 根据教师id查询上课班信息-郄子硕-2019-3-7 19:59:00
     * @param teacherId 教师Id
     * @return 上课班Model
     */
    List<TeacherTeachClassModel> queryTeachClass(@Param("teacherId") String teacherId);

    /**
     * 根据teacherId查找TeacherTeachClass
     */

    List<SelectTeacherTeachClassModel> getByTeacherId(@Param("teacherCourseTeachClassEntity") TeacherCourseTeachClassEntity teacherCourseTeachClassEntity);
}
